﻿using System;

namespace SBPweb.Talk.Client.Library
{

    public partial class ChatClient
    {

        #region Protected fields

        protected ConnectionManager manConnection;
        protected ContactsManager manContacts;

        #endregion

        #region Constructor logic

        public ChatClient(string host, string resource)
            : this(host, 4522, resource)
        {
        }

        public ChatClient(string host, int port, string resource)
        {
            manConnection = new ConnectionManager(this, host, port, resource);
            manContacts = new ContactsManager(this);
        }

        #endregion

        #region Property accessors

        public ConnectionManager Connection
        {
            get
            {
                return manConnection;
            }
        }

        public ContactsManager Contacts
        {
            get
            {
                return manContacts;
            }
        }

        #endregion

    }

}